#!/bin/bash
set -e
set -x
MYDIR="${0%/*}"
cd "$MYDIR/.."
source "recipes/common.sh"


# RECIPE START setproctitle

# No out of the source build
rm -rf build/setproctitle
cp -a setproctitle build/
reset_mtime build/setproctitle build/setproctitle/Makefile

make -j${JOBS} -C build/setproctitle \
	CROSS_COMPILE="${TARGET}-" \
	prefix="$prefix" \
	libdir="$prefix/$target_libdir" \
	all

make -j${JOBS} -C build/setproctitle \
	CROSS_COMPILE="${TARGET}-" \
	prefix="$prefix" \
	libdir="$prefix/$target_libdir" \
	DESTDIR="$stage" \
	install

rm -rf build/setproctitle

# RECIPE END setproctitle

